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 Sparkyboy, Today, 10:57 AM
        0 responses
        1 view
        0 likes
        Last Post Sparkyboy  
        Started by TheMarlin801, 10-13-2020, 01:40 AM
        21 responses
        3,916 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by timmbbo, 07-05-2023, 10:21 PM
        3 responses
        152 views
        0 likes
        Last Post grayfrog  
        Started by Lumbeezl, 01-11-2022, 06:50 PM
        30 responses
        809 views
        1 like
        Last Post grayfrog  
        Started by xiinteractive, 04-09-2024, 08:08 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X