Breakpoints

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rafi

    #1

    Breakpoints

    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?
  • Trev Hunter

    #2
    Re: Breakpoints


    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" <Rafi.Neeman@ec itele.com> wrote in message
    news:A9B1F50F-FB04-4934-BBCC-C28C3CA805ED@mi crosoft.com...[color=blue]
    > Hi,
    > I'm trynig to debug a C# project that is activated by an external program[/color]
    (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?


    Comment

    • Rafi Neeman

      #3
      Re: Breakpoints

      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 ?

      Comment

      • Trev Hunter

        #4
        Re: Breakpoints

        > 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" <anonymous@disc ussions.microso ft.com> wrote in message
        news:D94ACE5C-6F89-49CD-8B6F-9C795F43519A@mi crosoft.com...[color=blue]
        > Hi,
        > Thanks for the advise, I did attach to my process and the breakpoints[/color]
        bacame active. Is there a permenent way to attach to my process each time I
        debug ?


        Comment

        Working...