Site Search:
Sign in | Join | Help

Can't Debug the code in .NET (Visual Studio Tool)

Last post 03-28-2008 7:00 PM by tolac. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 03-28-2008 2:15 PM

    Can't Debug the code in .NET (Visual Studio Tool)

    Hi there,

    I am using Visual Studio Tool. I have a problem that I am not be able to  debug the code. What I have done is:

    1. I build my assembly for Debug (Set configuration solution to "Debug")
    2. Copy the assembly to Add-in folder
    3. Run Dynamics GP 10.0
    4. Put break-point in Visual Studio and attach process.
    5. Navigate to the Dynamics GP window (the point I wrote the code for)
    6. I saw message I wrote, but I did not get any thing in my break-point

    Anybody have solution, regarding this this problem? Thank you very much in advance.

    Tola 

    Filed under:
    • 67.131.46.122
  • 03-28-2008 3:04 PM In reply to

    Re: Can't Debug the code in .NET (Visual Studio Tool)

    You need to 'attach to the process'

    Immediately after launching Dynamics, go back to Visual Studio and find DEBUG > Attach To Process. Attach to the Dynamics GP process. That'll fix it.

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • 71.100.137.9
  • 03-28-2008 3:16 PM In reply to

    Re: Can't Debug the code in .NET (Visual Studio Tool)

     Yes, sire. I already did what you told, plus I saw a green line on the most left side of my code in Visual studio, It is seam like the Attachment process has no Error.

     But still, I can't get anything in my break-point.

    Tola
     

    • 67.131.46.122
  • 03-28-2008 5:39 PM In reply to

    Re: Can't Debug the code in .NET (Visual Studio Tool)

    That's all I can think of. Dynamics has to be installed in the default folder...

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • 71.100.137.9
  • 03-28-2008 7:00 PM In reply to

    Re: Can't Debug the code in .NET (Visual Studio Tool)

    Ho I got it done now. Man that is my mistake.

    In the Attach to Process window, I need to set:

    Attach to: Managed code 

     Stick out tongue


    Tola 

    • 67.131.46.122
Page 1 of 1 (5 items)