Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pyDccDisplayer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DigitalDynamicMeasurement
pyDccDisplayer
Commits
72fba2c4
Commit
72fba2c4
authored
1 year ago
by
Benedikt
Browse files
Options
Downloads
Patches
Plain Diff
no exit if remote debugging fails
parent
bf897fb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.py
+1
-3
1 addition, 3 deletions
src/main.py
with
1 addition
and
3 deletions
src/main.py
+
1
−
3
View file @
72fba2c4
...
...
@@ -40,14 +40,12 @@ if os.getenv('ENABLE_REMOTE_DEBUG') == '1':
try
:
import
pydevd_pycharm
# Set the debugger to connect back to PyCharm using the specified port
pydevd_pycharm
.
settrace
(
get_ip_address
()
,
port
=
6003
,
stdoutToServer
=
True
,
stderrToServer
=
True
)
pydevd_pycharm
.
settrace
(
'
127.17.0.1
'
,
port
=
6003
,
stdoutToServer
=
True
,
stderrToServer
=
True
)
print
(
f
"
Remote debugging is enabled. Connecting to debug server at
"
+
str
(
get_ip_address
())
+
"
:6003
"
)
except
ImportError
:
print
(
"
pydevd_pycharm is not installed. Please install it for remote debugging.
"
)
sys
.
exit
(
1
)
except
Exception
as
e
:
print
(
f
"
Failed to start remote debugging:
{
e
}
"
)
sys
.
exit
(
1
)
print
(
"
Starting DCCVwier server at
"
,
get_ip_address
())
class
page
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment