Eclipse PDT 3.0 URL generation in debug missing?

杀马特。学长 韩版系。学妹 提交于 2019-12-25 02:43:16

问题


In Eclipse PDT 2.2 debug settings there was an URL settings input. I'm using this URL to manipulate the desired page to debug.

In Eclipse PDT 3.0 debug settings this setting is missing.

Currently, when debugging in 3.0, the URL is auto-generated to map targeted debug file: localhost/__project/path/to/index.php, but it should be targeting an arbitrary page localhost/__site-example/contact-page.

Any ideas how can I get the URL independent of targeted debugged file?

Or perhaps I should change the way I'm configuring the targeted debug URL?

Thanks for suggestions.


回答1:


There seems to be a bug in PDT 3.0 which not just disables the function to edit the path but also disables the box for displaying path and option. By default key="auto_generated_url" value="true" , so by default you never have the possibility to edit URL.

As a workaround search for the configuration-file in your workspace f.e. /workspace/.metadata/.plugins/org.eclipse.debug.core/.launches/New_configuration.launch and there you have to change the key mentioned above from true to false .

Then the URL-Box should show up again. (But don't dare to switch on auto generation again! .... )




回答2:


To mention, I think the issue/bug also involves 'Break On First Line'

I have disabled that option, in the individual debug configuration, and in the global debug preferences, but the debug still breaks on first line.

Your post helped me find that setting

in the same file, and now the break on first line is gone/fixed.

Thank you.




回答3:


I found it useful to change the

stringAttribute key="base_url" value="http://xxxx 

to your desired url in the launch configuration (/workspace/.metadata/.plugins/org.eclipse.debug.core/.launches/xxx.launch) to launch the debug directly as required.

This helped me get rid of a pesky double slash when using rewrite for codeigniter due to the autogenerated



来源:https://stackoverflow.com/questions/8201321/eclipse-pdt-3-0-url-generation-in-debug-missing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!