Breakpoints

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I'm trynig to debug a C# project that is activated by an external program (my program is not a DLL, it is an EXE and it is called by third party program). My project does not stops at breakpoints. Why?
 
Make sure you have compiled in "Debug mode", not "Release Mode"

How are you starting the program? Are you using Debug -> Start or is another
application launching your EXE directly?
If another app is launching the EXE directly, go to Debug-> Processes and
attach to the name of the your process once it has started.

HTH,

Trev.

Rafi said:
Hi,
I'm trynig to debug a C# project that is activated by an external program
(my program is not a DLL, it is an EXE and it is called by third party
program). My project does not stops at breakpoints. Why?
 
Hi,
Thanks for the advise, I did attach to my process and the breakpoints bacame active. Is there a permenent way to attach to my process each time I debug ?
 
Is there a permenent way to attach to my process each time I debug ?

Not if your EXE is launched by another program instead of Visual Studio.
You'll have to manually attach to it. If you launch your exe directly from
the IDE, silmply goto Debug -> Start and it should automatically attach.

If you have control over starting and stopping the external application that
loads your project, you could try going to Project Properties ->
Configuration Properties -> Debugging -> Start external program and enter
the program to start.

Hope this helps,

Trev.


Rafi Neeman said:
Hi,
Thanks for the advise, I did attach to my process and the breakpoints
bacame active. Is there a permenent way to attach to my process each time I
debug ?
 
Back
Top