Hansel and Gretel are in the forest and don’t want to get lost, so Gretel leaves a trail of white pebbles to mark their way. In future adaptations of this Bros. Grimm story, the white pebbles have become ‘breadcrumbs.’
So what does this have to do with SQL Developer?
When working with large bits of PL/SQL code, you now have what we are calling breadcrumbs in the editor footer space. Now in the the world of web design, breadcrumbs have also been used to show the navigation path of your web session. This is a bit different, but I think you’ll get the gist once you see it for yourself.
The indicator shows where you are in your code block. You can also click on the breadcrumb to navigate back to the beginning of said block. If I were to click on the ‘Generate_OS_File’ bit, that will take me back to the first line of that procedure.
If I were to click on the first bit of the breadcrumb, it will show a ‘table of contents’ of sorts that I can use to navigate to anywhere in the package.
The editor will show you in a loop, if statement, exception, etc. If you can’t remember or tell where you’re at inside a large code block, this feature should help you out a bit.
Special thanks to @martindsouza for today’s post idea.
I was backward to 4.0.3 because after this Version the breadcrump doesn’t work anymore.
I recently downloaded SQL developer version 126.96.36.199.260.1303.
The “Show Breadcrumbs” checkbox is ticked but no breadcrumb is shown in the code editor.
Is there another setting to change in order to display the breadcrumb?
We nuked that JDev feature b/c it created too many performance problems.
Version 188.8.131.52 (Java: 1.8.0_45)
Preferences -> Code Editor -> Display -> Show Breadcrumbs:
The setting doesn’t seem to have an effect: it never shows the breadcrumbs in the editor.
I’m making the procedures and functions on the Oracle SQL Developer.
Now, when I open the package body editor, the status bar always saying…
“calculating the breadcrumbs for …” and some times later hanging.
What is the reason of this strange?
What version are you on?
Mine is Version 184.108.40.206 , Build MAIN-18.37.
Is there some dba view or something that you need access to for the breadcrumbs to work. I am using 220.127.116.11 and it never finishes calculating breadcrumbs. The progress bar never goes away. I figured maybe there is something my user cannot see in the db.
I don’t think that’s it…unless you’re seeing it for EVERY pl/sql object you open. We had this in the 4.0 code base, and logged (and killed) a few bugs against it. If you can share your sample code, we can try to take a look at it. You can also go into preferences and disable ‘Show breadcrumbs’ under the Code Editor and Display page.
If you think it’s privilege based, go to View > Log, and observe the Statements panel. You can see any queries fired off to the data dictionary when you open/compile your code.
Thanks for the feedback! For some reason, it’s working now. I know for a few days that it wasn’t. The View>Log suggestion was very helpful however, I didn’t realize that was there. Thanks again.
Does this feature need to be enabled? When I start to edit a package the first “crumb” appears as per your example above, but then clicking on that crumb does nothing thereafter.
I’m using V18.104.22.168.27 and JDK 1.7.0_25 (both 64 bit).
Also in the last version of SQL Developer, double clicking on a function or procedure name in the connection tree on the left used to take you directly to that code. It doesn’t work any more. Is that an intentional change in V4?
No, should work out of the box. Can you provide some sample code we can test with?
The nav issue you reference is a known bug and already fixed for the next EA.
Thanks for the feedback.
I did some tests in a few of our DB instances and found it does work for most packages, but not all.
Some that do not work for me and are available to download include JSON_PARSER and JSON_PRINTER that come with PL/JSON which is available to download from http://sourceforge.net/projects/pljson/
When invoking the editor for the package body of these packages, the first breadcrumb appears at the bottom left, but nothing happens when it is clicked. This occurs with one or two of our custom packages as well.
Hope that provides enough to recreate the issue.