• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get line where error happens.

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

  • TazoTodua
    started a topic Get line where error happens.

    Get line where error happens.

    When we get an error message, NT doesnt shown the line number of that "object" (or whatever failing element)



    Pleas send the feature request to dev.team implement the C# functinality (reflection or whatever) to give us also the line number which causes the error.

    PLEASE DONT SAY ANYTHING ABOUT "other solutions", like inserting the PRINT manually in all lines to find out the problem.
    Last edited by TazoTodua; 09-28-2018, 07:26 AM.

  • NinjaTrader_PatrickH
    replied
    Hello TazoTodua,

    Thank you for your note.

    There is currently no update on this feature request. The internal tracking id for this request is SFT-1209.

    Please let me know if you have any questions.

    Leave a comment:


  • TazoTodua
    replied
    Any news about implementing this in NT8?

    Leave a comment:


  • NinjaTrader_AlanP
    replied
    Hello selnomeria,

    I will pass your suggestion on to the development team.

    In the mean time you could put 15 print statements every 150 lines. Then when you find where the issue is, you could add print statements within that block to narrow it down.

    Please let us know if you need further assistance.

    Leave a comment:


  • TazoTodua
    replied
    sorry, it's out of question what you say. we should need to spent hours for what your dev team can implement quickly.
    Last edited by TazoTodua; 09-28-2018, 07:28 AM.

    Leave a comment:


  • NinjaTrader_AlanP
    replied
    Hello Selnomeria,

    You could add print statements in your strategy with the line number in each print statement so you can identify your bad code.

    For example,

    Print("Made it to line 101"); //Place on line 101.

    I have provided a video on using print statements for debugging.
    https://www.youtube.com/watch?v=K8v_...tu.be&t=48m45s

    I’ve provided a link covering debugging which you may find helpful.
    Debugging: http://ninjatrader.com/support/forum...ead.php?t=3418

    Please let us know if you need further assistance.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by gbux11, Today, 02:36 AM
1 response
11 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by NinjaCustomer, 05-09-2019, 08:54 AM
4 responses
66 views
0 likes
Last Post Harry
by Harry
 
Started by Mike3238, Yesterday, 07:09 PM
1 response
21 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by Rashid Garuba, Today, 11:37 AM
0 responses
8 views
0 likes
Last Post Rashid Garuba  
Started by elkhatabi, Today, 11:19 AM
0 responses
5 views
0 likes
Last Post elkhatabi  
Working...
X