Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    BertrandNinjaTrader Customer Service

    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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by janio973, Today, 06:39 PM
        0 responses
        2 views
        0 likes
        Last Post janio973  
        Started by gusta39, 01-26-2023, 12:22 PM
        7 responses
        228 views
        0 likes
        Last Post vpatanka  
        Started by marioduran5, Today, 04:59 PM
        0 responses
        6 views
        0 likes
        Last Post marioduran5  
        Started by giogio1, Today, 04:23 PM
        0 responses
        9 views
        0 likes
        Last Post giogio1
        by giogio1
         
        Started by thiomorhenry, Today, 04:14 PM
        0 responses
        5 views
        0 likes
        Last Post thiomorhenry  
        Working...
        X