Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Guidance for Debugging NT 7.0.1000.16 with VS 2012

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Guidance for Debugging NT 7.0.1000.16 with VS 2012

    I've tried to debug custom strategy via Visual Studio 2012 Professional.

    Following http://www.ninjatrader.com/support/h..._debugging.htm

    1. Compile strategy with debug information included
    OK so far
    2. Attached running Process: NinjaTrader.exe, Title: Strategy - <My strategy name>, Type: Manage d (v2.0.507227)
    2.1 VS Loadig all symbols associated with the running process
    2.2 Solution 'Solution <N>' created with (0 projects)

    Can some one advice how to set break points?

    Note: I have >15 years programming experience, but VS & NT is very new for me.

    Thank you for the help
    P

    #2
    pranas, you can set a breakpoint directly in VS by a right click in the code. Here's a short Youtube I found showing a debug process with VS and NT to follow along, it's a bit dated but generally still valid conceptually - http://youtu.be/dwyiwFxrKkA

    Comment


      #3
      Was able to trigger breakpoints of strategies (Custom & Sample) in Initialize(), but not OnBarUpdate().
      Tried: Reload Script or Reload All historical data/Script on chart also back-test strategy - breakpoints were not triggered.

      Comment


        #4
        I would expect that, you would need to actually step through the OnBarUpdate() calls by using the VS debug mode Continue button. Then you can inspect variables states as hit by your breakpoint in VS as processes through it.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        317 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X