What You Should Know About Visual Studio Real-Time Debugging

November 25th, 2016 by

Perhaps, you are trying to figure out whether visual studio real-time debugging is possible for your development needs. That is, while conducting your normal approach to debugging, instead of using the breakpoint in stopping the runtime so that you can check the debug data, you simply add watches or data tips that update the AS so that the program can run. However, you might have a problem if the program that you have uses loops constantly triggering functions and methods in the program. Putting breakpoints can cause issues when you run the program after breakpoint. Maybe your question now is whether you can debug without adding breakpoints to ensure dynamic updates of everything in your debugging data with the program runtime.

Inspection support

Visual studio debugger does not provide support for inspection as this process can run for various reasons. Perhaps, the first thing that you should consider is the language that you use in the development. What problem is the language causing when you start after reaching the breakpoint? An option that you may select when developing in C++ is using data breakpoint. Create the data breakpoint after stopping the program in a debugger through Debug-New Breakpoint-New Data Breakpoint. Data breakpoint is generally triggered whenever anything in the program writes to a specific memory address. Point to a message so that you can continue after hitting the data breakpoint, convert it to the trace point by clocking on the data breakpoint in breakpoints windows then select “When Hit.”

Set debugging properties

Visual studio real-time debugging is possible with some debugger options like IntervalZero Real-Time Debugger. This debugger display additional options for debugging in Property Pages of the application. Using these options, you can do the following:

  • Set the process on which your main debugged process thread will run.
  • Select the override default memory for the behaviour allocation so that you can allocate memory from the local memory of the application. Typically, this uses the memory allocated deterministically.
  • Set affinity mask that will specify the processor where to run the debugged process.

Generally, visual studio real-time debugging is possible when you use the right debugger. A good debugger will enable you to start profiling, open your session files then get additional information on memory while debugging from Visual Studio directly. This means that you can debug without leaving your development environment.



Leave a Comment