Skip to content

Fix debugging of pyramid applications#1504

Merged
DonJayamanne merged 1 commit into
microsoft:masterfrom
DonJayamanne:issue1467PyramidDebugging
Apr 26, 2018
Merged

Fix debugging of pyramid applications#1504
DonJayamanne merged 1 commit into
microsoft:masterfrom
DonJayamanne:issue1467PyramidDebugging

Conversation

@DonJayamanne
Copy link
Copy Markdown

Fixes #1467
Fixes #737

This pull request:

  • Has a title summarizes what is changing
  • Includes a news entry file (remember to thank yourself!)
  • Has unit tests & code coverage is not adversely affected (within reason)
  • Works on all actively maintained versions of Python (e.g. Python 2.7 & the latest Python 3 release)
  • Works on Windows 10, macOS, and Linux (e.g. considered file system case-sensitivity)

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2018

Codecov Report

Merging #1504 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1504      +/-   ##
==========================================
- Coverage   71.28%   71.26%   -0.03%     
==========================================
  Files         271      273       +2     
  Lines       12639    12667      +28     
  Branches     2273     2273              
==========================================
+ Hits         9010     9027      +17     
- Misses       3493     3498       +5     
- Partials      136      142       +6
Impacted Files Coverage Δ
...client/debugger/configProviders/serviceRegistry.ts 100% <100%> (ø) ⬆️
...rc/client/debugger/configProviders/baseProvider.ts 93.24% <100%> (-0.66%) ⬇️
src/client/debugger/configProviders/types.ts 100% <100%> (ø)
.../client/debugger/configProviders/pythonProvider.ts 100% <100%> (ø) ⬆️
...gger/configProviders/configurationProviderUtils.ts 100% <100%> (ø)
...lient/debugger/configProviders/pythonV2Provider.ts 87.27% <100%> (+0.99%) ⬆️
src/client/debugger/PythonProcess.ts 45.83% <0%> (-5.42%) ⬇️
...rc/client/debugger/PythonProcessCallbackHandler.ts 52.96% <0%> (ø) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cea5b06...5d537c9. Read the comment docs.

const pythonPath = path.join(workspacePath, 'env', 'bin', 'python');
const pserveExecutableName = isWindows ? 'pserve.exe' : 'pserve';
const pservePath = pythonPathExists ? path.join(path.dirname(pythonPath), pserveExecutableName) : pserveExecutableName;
const pyramidFilePath = path.join(path.dirname(pythonPath), 'lib', 'site_packages', 'pyramid', '__init__.py');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just look for pyramid? That way you don't need to take the path.dirname() on the next line?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need pyramidFilePath with __init__.py as this needs to be returned by the mocked process (stdout)

@DonJayamanne DonJayamanne merged commit 849009b into microsoft:master Apr 26, 2018
@DonJayamanne DonJayamanne deleted the issue1467PyramidDebugging branch June 20, 2018 03:18
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to debug pyramid apps in experimental debugger Error when trying to debug pyramid app on Windows

2 participants