ugeb
asked on
visual studio won't stop on debug.print statement
Hi,
When debugging a small program I downloaded (Net DDE) I can't seem to get any debug.print outputs. I'm more accustomed to VBA, and I'm not sure of the difference between a write and print, but neither prints to the immediate window.
I've selected the Tools / Options / Debugging / General / Redirect all Output option, but nothing shows up.
Additionally, when I put a breakpoint on a debug.print line and start debugging, it actually MOVES the breakpoint to the next line! I don't understand this behavior, but I guess it's some setting. Under my project properties, in the Debug tab on the left, I selected the 'Debug' configuration. Still didn't work.
What can I do?
Thanks!
When debugging a small program I downloaded (Net DDE) I can't seem to get any debug.print outputs. I'm more accustomed to VBA, and I'm not sure of the difference between a write and print, but neither prints to the immediate window.
I've selected the Tools / Options / Debugging / General / Redirect all Output option, but nothing shows up.
Additionally, when I put a breakpoint on a debug.print line and start debugging, it actually MOVES the breakpoint to the next line! I don't understand this behavior, but I guess it's some setting. Under my project properties, in the Debug tab on the left, I selected the 'Debug' configuration. Still didn't work.
What can I do?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow, three different places to choose between release and debug ... That last one was the clincher.
@kaufmed, my properties page looks different from yours. Instead of 'Build', I have 'compile', and I couldn't even find the 'Define DEBUG CONSTANT'. Are you using a different version of VS? I'm using VS 2010 Ultimate.
Thanks!
@kaufmed, my properties page looks different from yours. Instead of 'Build', I have 'compile', and I couldn't even find the 'Define DEBUG CONSTANT'. Are you using a different version of VS? I'm using VS 2010 Ultimate.
Thanks!
What kind of project do you have? Is it a web site project?
In any event, if you didn't change any of the default settings, then setting the configuration mode as aebea suggested will have that setting enabled anyway.
In any event, if you didn't change any of the default settings, then setting the configuration mode as aebea suggested will have that setting enabled anyway.
ASKER
No, it's not a website project, but yes, aebea's suggestion did finally let me see the output.
ASKER
Okay, good to know, thank you.