question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the working directory is not set as expected for Pyramid debug config

See original GitHub issue

Environment data

  • VS Code version: 1.36
  • Extension version (available under the Extensions sidebar): 2019.8.29288
  • OS and version: macOS Mojave 10.14.6
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.10
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): virtualenv
  • Relevant/affected Python packages and their versions: pyramid 1.5.8
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): N/A

Expected behaviour

The Pyramid debug config runs with the working directory the same as the entry file. This happens, for example, if we set create the Pyramid debug config with "cwd":"${fileDirName}"

Actual behaviour

Pyramid debug config is created without cwd set and it appears to default to the parent directory, which causes my pyramid app to be unable to resolve static asset paths.

Steps to reproduce:

  1. Debug > Add Configuration > Python > Pyramid

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24

github_iconTop GitHub Comments

1reaction
tdamsmacommented, Aug 14, 2019

@ajohnstonsm, recreating the pyramid debugging config solved my problem indeed, thanks. Put in a feature request for better user notification of outdated debugging configs

0reactions
karrtikrcommented, Sep 23, 2019

Closing as no further info was provided.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pyramid.config - The Pylons Project
A Configurator is used to configure a Pyramid application registry. ... when using include() , whereas the root_package does not change.
Read more >
Run/Debug Configuration: Pyramid Server - PyCharm
Working directory. Specify a directory to be used by the running task. When a default run/debug configuration is created by the keyboard ...
Read more >
how to set working directory for debugging a Python program ...
json file, open your project folder in VS Code (File > Open Folder) and then select the Configure gear icon on the Debug...
Read more >
Nightwatch Configuration File | Developer Guide
The Nightwatch test runner binary expects a configuration file located in the current working directory. The following is a list of possible file...
Read more >
Nixpkgs 22.11 manual - NixOS
nix file, if it is a directory. Because overlays that are set in NixOS configuration do not affect non-NixOS operations such as nix-env...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found