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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        87 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        106 views
        0 likes
        Last Post CarlTrading  
        Working...
        X