简体   繁体   中英

Visual Studio 2015 Interactive Window

将交互式窗口初始化为项目后,是否可以附加和调试?

In spite of the documentation saying that debugging isn't supporting you can actually attach the debugger and debug your code (I imagine it might be implying that you can't step through the interactive code or break on it).

All you need to do is go to Debug > AttachToProcess and then browse the list for InteractiveHost.exe . This can be a tad tricky if you're running multiple instances of Visual Studio since there might be a different process for each. But if you attach the debugger you will definitely hit breakpoints within your own code that you used to initialize the interactive session.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM