Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to view Ninjascript in Visual Studio or other editors

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

    #16
    Thanks, but this doesn't work for me... I wish it would... it would save a lot of messing about!

    Under Debug ... Options menu, Debugging>General, the line for Enable Edit & Continue is greyed out... always has been. This seems to be key to your process!
    So I get an error saying code can't be edited whilst debugging, and so need to do the stop/edit/reattach thing.

    FYI I'm using the latest VS 2019 Professional edition, and NT8.0.18.1

    Comment


      #17
      Hello tgn55,

      The setting you are referring to is a visual studio setting and is not specific to NinjaTrader. This would need to be disabled if you wanted to leave the debugger attached and be able to edit code.

      The "Enabled edit and continue" option in the options menu needs to be unchecked, if it is gray you will need to detach the debugger before being able to change the setting.
      If the option is checked and cannot be toggled even when a project is not open, you will need to review visual studio help information to further diagnose that situation.


      I look forward to being of further assistance.
      JesseNinjaTrader Customer Service

      Comment


        #18
        Hi,
        don't you have the check status backwards? Surely from your previous advice re how to do this, (involving hitting Continue, editing etc...) it would need to be Enabled?

        Anyway, did some more testing. It is enabled, not greyed out, right up to the point of attaching VS to the Ninja process. And then -unchecked and greyed out, so it seems I'm stuck.

        Comment


          #19
          Hello tgn55,

          No it would need to be unchecked.

          Have you tried closing the NinjaTrader solution and leaving just visual studio open to toggle the setting? I am not sure what would cause that to be gray other than being attached or in a state where debugger settings cannot be changed.

          Here is a quick video (no audio) just demonstrating the difference between checked and unchecked for that setting. https://puu.sh/E8dpu/d5a9879d70.mp4

          I look forward to being of further assistance.

          JesseNinjaTrader Customer Service

          Comment


            #20
            Thanks for the vid Jesse... that really helped. Don't know if I'm weird, but it does seem the VS checkbox description is counter-intuitive? If you want to edit and continue, you need to uncheck "Enable edit & continue" ?? Whatever, I can see how make it do what I want now...

            Thankyou for your assistance...

            Comment


              #21
              Hello tgn55.

              In this situation I can agree, the setting name is counter intuitive to what NinjaTrader is actually doing. In contrast to a normal application being built in visual studio it makes more sense. I believe the goal for that option is to compile then apply changes when you continue debugging but visual studio is not doing any compiling here which is the key difference. You will find some of the features in visual studio may be different due to the context, it is essentially just being used as a fancy text editor here because NT still has to compile.

              I look forward to being of further assistance.
              JesseNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Futurestrader00, Yesterday, 06:14 PM
              1 response
              16 views
              0 likes
              Last Post cincai
              by cincai
               
              Started by ballston, Today, 06:32 AM
              0 responses
              1 view
              0 likes
              Last Post ballston  
              Started by Danila, Today, 04:38 AM
              2 responses
              7 views
              0 likes
              Last Post Danila
              by Danila
               
              Started by sinpeople, Today, 04:38 AM
              0 responses
              7 views
              0 likes
              Last Post sinpeople  
              Started by kiffgj, Today, 04:23 AM
              0 responses
              8 views
              0 likes
              Last Post kiffgj
              by kiffgj
               
              Working...
              X