Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugger - Step over property gives VS IDE specific output in debug console #263

Closed
chuckries opened this issue Apr 29, 2016 · 10 comments
Closed
Assignees
Milestone

Comments

@chuckries
Copy link
Contributor

This appears in the debug console when stepping over a property:

Step into: Stepping over property 'MusicStore.Models.Album.get_AlbumId'.  To step into properties, go to Tools->Options->Debugging and uncheck 'Step over properties and operators (Managed only)'.
WARNING: Your step-into request resulted in an automatic step-over of a property or operator.
This behavior can be overridden in the context menu for the line being executed by choosing 'Step Into Specific'  or by unchecking the option 'Step over properties and operators'.
Do you want to continue being notified when an automatic step-over happens?
@sternb0t
Copy link

I'm experiencing this too. Any known workarounds?

@gregg-miskelly
Copy link
Contributor

@sternb0t if you want to stop in the property - set a breakpoint, if you are just concerned about the text -- you will need to ignore it.

@sternb0t
Copy link

Thanks @gregg-miskelly but how can I set a breakpoint in a .NET core property like the ones in System.ComponentModel.DataAnnotations? Those aren't defined in my code. I was hoping justMyCode: true in launch.json would allow me to step in to wherever that code lives.

@sternb0t
Copy link

Sorry I meant to say justMyCode: false!

@gregg-miskelly
Copy link
Contributor

gregg-miskelly commented May 24, 2016

In the short term, it is pretty difficult to step into the CoreFX. Here is what you would need to do though:

  1. You need a copy of CoreFX binaries which are built using portable PDBs. @noahfalk @stephentoub do you by chance know if there is a builtin way to do this today? Would enlisting and building on Unix work?
  2. You need a copy of CoreFX sources (ex: git clone https://github.com/dotnet/corefx.git and checkout the right branch). Obviously if you are building it in step 1, this goes away.
  3. You need to get your project to use the CoreFX you just built.
  4. If you want to step into a property, as I said, you will need to find the right source file and set a breakpoint.

@gregg-miskelly
Copy link
Contributor

BTW: We have a planned feature to make this process less painful. We didn't have an issue tracking this, so I opened #373 so that you can follow progress if you are interested.

@sternb0t
Copy link

Awesome, thank you for this.

@noahfalk
Copy link
Member

This issue has the latest status I'm aware of on CoreFX binaries producing portable PDBs:
https://github.com/dotnet/corefx/issues/5733

@dagood

@gregg-miskelly
Copy link
Contributor

@chuckries I believe this is addressed with #530. Correct? If so, can you close it?

@chuckries
Copy link
Contributor Author

@gregg-miskelly correct, this fix is in master and will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants