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

Debugging with Visual Studio 2013 Not Working

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

    Debugging with Visual Studio 2013 Not Working

    Hi there. I've been doing a lot of debugging successfully with Visual Studio 2012. I just recently have been trying out Visual Studio 2013 for development but it seems that Debugging NinjaTrader with it is broken as no exceptions thrown in NinjaTrader are caught by Visual Studio, and no breakpoints are hit. Anyone else run into this?

    #2
    Hello tickleboy,

    Thank you for your post.

    We do support debugging in Visual Studio but nothing more as far as development. You can find a forum thread on Big Mike's Trading on Visual Studio development at the following link: https://www.bigmiketrading.com/ninja...0-dummies.html

    What exceptions and break points are you trying to catch?

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello tickleboy,

      Thank you for your post.

      We do support debugging in Visual Studio but nothing more as far as development. You can find a forum thread on Big Mike's Trading on Visual Studio development at the following link: https://www.bigmiketrading.com/ninja...0-dummies.html

      What exceptions and break points are you trying to catch?
      All breakpoints are not picked up by Visual Studio. If you put a breakpoint at the start of OnBarUpdate in the SampleMACrossOver strategy provided by NinjaTrader, after attached Visual Studio to the NinjaTrader process and then running the strategy in the Strategy Analyzer, the breakpoint is never hit.

      Thing was, it was working perfectly. The upgrade to VS2013 has changed something.....

      Comment


        #4
        Found an answer... you need to:

        1. In Visual Studio 2013, Attach to the NinjaTrader Process.
        2. Recompile NinjaTrader.
        3. Run the strategy.

        It will now work.

        Comment


          #5
          Remember to check Debug option on script in NinjaTrader editor

          I was running into the same problem trying to debug code for the first time from Visual Studio 2013. Worked for me once I remembered to check the Debug option in the code editor for my script in NinjaTrader.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Waxavi, Today, 02:10 AM
          0 responses
          3 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by TradeForge, Today, 02:09 AM
          0 responses
          8 views
          0 likes
          Last Post TradeForge  
          Started by Waxavi, Today, 02:00 AM
          0 responses
          2 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by elirion, Today, 01:36 AM
          0 responses
          4 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by gentlebenthebear, Today, 01:30 AM
          0 responses
          4 views
          0 likes
          Last Post gentlebenthebear  
          Working...
          X