advice to debug an app
I'm working on a specific application generation a lot of code on the server side.
The process is as follows:
- I write a class with some methods. For example:
Class MyClass { public function foo(){…} public function bar(){…} } - I send them to the server
- The server "injects" code in my class. For example:
Class MyClass { /* injected content */ public function gen(){…} /* end of injected content */ /* original content */ public function foo(){…} public function bar(){…} /* end of original content */ }
The question is now: How would you debug this generated code since
- you do not have the generated code in your sources
- you cannot include them in your project since this would result in all your classes being doubled
I know the way this tool works is really surprising, but I cannot use another tool…
Thanks for your feedback.
CircleCode
Please sign in to leave a comment.
here's a guess:
Could you create another project on your local machine which is a download of the site, then use this other project for debugging?
use the "sync with server" ftp function to collect the changed files from the site.
so 2 local projects both mapped to the same server.
download the stuff from the server, run the debugger from the second instance of phpstorm.
Sorry for not answering before, your suggestion was the only solution I found, even if it is
far from the perfect workflow…
I hope this will see some solution in progress of WI-7486…