New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stack trace into make logs if DEBUG True #994
Add stack trace into make logs if DEBUG True #994
Conversation
Great. Do we need to add/explain this in the README? Your explanation, that is, regarding how to enable it. |
Yes It could be good to explain it to all the users to help us debug things |
Well I obviously can't push commits to your branch, so you'll have to add it by yourself unfortunately. |
Done ! |
Co-authored-by: AnonymousWP <50231698+AnonymousWP@users.noreply.github.com>
I will wait until both of you decide on the suggestions by @AnonymousWP . |
@AnonymousWP Modifications added |
Huh? You could have just merged my suggestions and solve the thread. You committed my changes now or? Seems inefficient. |
@AnonymousWP No I think he hasnt commited. @psyray please resolve all comments. |
Sorry bad usage .... |
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied
Corrected myself, bad github usage for me
Suggestion: maybe we could make it easier without having to edit files, e.g. make it a command? Editing reNgine files locally cause Git to pick it up as a changed file, which in turn may become confusing to users when running |
You're right. It could be added to a Only the If you have a solution to switch to debug without change git index only by doing a Maybe we can in the if [ -f DEBUG ]; then
export DEBUG=1
fi |
I'm not exactly sure tbh, maybe @yogeshojha has an idea. |
This one should be reverted in favor of #1196 |
To track Error 500 and easily debug reNgine from the
make logs
commandTo activate debug, from the root directory of reNgine :
web/entrypoint.sh
and add at the topexport DEBUG=1
docker-compose restart web
Then, with DEBUG set to 1, in the
make logs
output you could see the full stack trace to debug reNgine,.Example with the tool arsenal version check API bug.
Now you know the real error
TypeError: run_command() got an unexpected keyword argument 'echo'
And you can post it to the issue you can create to help developers to track the root cause and correct the bug easily
Activating debug like this also give you the full stack trace in the browser
Here the schedule scan 500 error