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

Debug Strategy in Visual Studio

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

    Debug Strategy in Visual Studio

    Hello,

    I have been debugging indicators for a long time with no issues in Visual Studio (open indicator file, compile in debug mode, attach Ninja.dll and etc).

    Now I need to debug a strategy that runs in Replay mode. When I set a break point and it is hit, I end up in termination error. All runs fine without Debugger.

    Is there anything different/special I need to do to debug a strategy, running via Replay, vs indicator in visual studio?

    Thanks,
    redduke

    #2
    Hello RedDuke,

    Thank you for your post.

    There should be nothing special you need to do in the case of Market Replay and Debugging in Visual Studio.

    Can you send us your log and trace files so we may investigate the error further?

    You can do this by going to the Control Center-> Help-> Mail to Platform Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

    Please list 'ATTN: Patrick H' in the subject line and reference this thread in the body of the email.

    I look forward to assisting you further.

    Comment


      #3
      Hi Patrick,

      Just to clarify what I am doing:
      1) Open visual studio and then attach Ninja process
      2) Open Strategy in Ninja and compile in debug mode
      3) Open strategy in Visual Studio and set a break point
      4) Start running strategy in Replay mode

      All steps are there?

      Thanks,
      redduke

      Comment


        #4
        Hello RedDuke,

        Thank you for your response.

        Those are the correct steps.

        Comment


          #5
          Hi Patrick,

          I guess my laptop just needed a confirmation from you . All is working fine and strategy is stopping at debugging.

          Thanks,
          redduke

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          1 view
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          6 views
          0 likes
          Last Post Javierw.ok  
          Started by timmbbo, Today, 08:59 AM
          2 responses
          10 views
          0 likes
          Last Post bltdavid  
          Started by alifarahani, Today, 09:40 AM
          6 responses
          41 views
          0 likes
          Last Post alifarahani  
          Working...
          X