Many times you would have faced issues with the default log size in Jdeveloper. You get an exception, and when you scroll through the log to find out the stack trace, it was already gone as the log size is not sufficient. To increase the no. of lines for log, goto 'Tools' menu -> select 'Preferences..'
Now, increase the log size in the 'Environment: Log' section:
Showing posts with label Tip. Show all posts
Showing posts with label Tip. Show all posts
Thursday, November 4, 2010
Jdeveloper Tip: Increasing the log size
Jdeveloper Tip: Toggling line numbers in the code editor
The quickest way of showing line numbers for the code in code editor in Jdeveloper is just right click on the left hand side of code editor and select 'Toggle Line Numbers'.
If you prefer to show line numbers always, you can do that in settings for 'Code Editor: Line Gutter'.
There, you select 'Show Line Numbers' and save the settings. That's it! From next time onwards, the line numbers will be displayed in the code editor.
If you prefer to show line numbers always, you can do that in settings for 'Code Editor: Line Gutter'.
There, you select 'Show Line Numbers' and save the settings. That's it! From next time onwards, the line numbers will be displayed in the code editor.
Debugging Tip - Easy way of viewing stack traces in the server log
While debugging, you may find it very difficult to scroll through entire 'Log' window to find out your stack traces in case if there is some error while running UI or model code. To view the stack traces available in the Server log, just right click in the log window and select 'Stack Traces..'.
Now, the 'Stack Traces' window will be opened and it'll show all the stack traces in the log.
You can navigate through the stack traces very easily in the 'Stack Traces' window. And, if you want to go to the some line in code from the stack trace, just select that line in stack trace and click on 'Go To' button in the window. Control will move to the code editor at the corresponding line no. If the source file is from different project, it'll ask to select the project containing the source and once you select the project it'll search in that project and goes to the corresponding line.
Now, the 'Stack Traces' window will be opened and it'll show all the stack traces in the log.
You can navigate through the stack traces very easily in the 'Stack Traces' window. And, if you want to go to the some line in code from the stack trace, just select that line in stack trace and click on 'Go To' button in the window. Control will move to the code editor at the corresponding line no. If the source file is from different project, it'll ask to select the project containing the source and once you select the project it'll search in that project and goes to the corresponding line.
Subscribe to:
Posts (Atom)

