Team-2502 / RobotCode2018

All of our code for our 2018 robot.
GNU General Public License v3.0
3 stars 0 forks source link

Logger often gives the wrong line #18

Closed andrewgazelka closed 6 years ago

andrewgazelka commented 6 years ago

1) Use logger 2) Look at actual line in code 3) ? 4) fix logger

donovanMaas commented 6 years ago

This is a problem with the roboRIO, if you look at the code you will see you are getting the stack trace from java. If you want to patch the roboRIO's version of java go ahead.

donovanMaas commented 6 years ago

After looking at the disassembled code I can say that the generated jar has all of the correct line numbers. In PurePursuitMovementStrategy#update(void) the line of code you previously mentioned to be in error is showing the correct line numbers. The LineNumberTable says that the first print statement is on line 130, which it is.