在 Oracle SQL Developer 中使用调试不会在断点处停止
我正在尝试使用 Oracle SQL Developer 调试存储过程。数据库位于另一个盒子上。 授予权限
GRANT debug any procedure, debug connect session TO <user>;
我已使用“我已将断点放置在过程内的赋值行之一”来 。出于绝望,我也尝试过其他地方。当我单击“调试”时,我会出现调试对话框并填写所有值。当我点击“调试”存储过程运行时,调试控件会在一秒钟内在屏幕上闪烁,然后完成并退出。它会错过所有断点,就好像它根本不存在一样。有什么想法吗?
I am trying to debug a stored procedure using Oracle SQL Developer. The DB is on another box. I have granted privileges using
GRANT debug any procedure, debug connect session TO <user>;
I have placed the break point inside the procedure on one of the assignment lines. I have tried other places too out of desperation. When I click debug I get the debug dialog and I fill in all the values. When I hit debug the stored procedure runs, the debug controls flash across the screen in a second and then it finishes and exits. It misses all the breakpoints as if it weren't even there. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了调试工作,您必须使用调试标志编译包/过程。在 SQL-Developer 中,这是通过打开包并单击小“Gears with a bug”按钮(编译包进行调试)来完成的,
之后所有断点都将起作用。
For debugging to work you have to compile the Package / Procedure with the Debug-Flag. In SQL-Developer this is done by opening the package and clicking on the little "Gears with a bug"-Button (Compile Package for Debug)
After that all your breakpoints will work.
好吧,偶然发现了答案。事实证明,在我稍微改变了过程(添加了调试)并保存后,它就开始工作了。
Okay, found the answer by accident. Turns out after I altered the proc slightly (added debugs) and the saved then it started working.