Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
debugger-is-attached
Advanced tools
Lets you know if a debugger is actually attached
Sometimes I need to modify execution due to a debugger being attached. The most obvious use-case is for setting a longer test timeout when debugging a test.
Sort of. Some other attempts have been to observe the command-line parameters of the current process, which doesn't work when, eg, debugging a test in WebStorm. Also, debuggers can detach.
This solution is based on a GitHub comment so you know it's the real deal!
describe(`some fixture`, () => {
beforeEach(async () => {
const
debugging = await debuggerIsAttached(),
timeout = debugging ? 300000 : 5000;
jest.setTimeout(timeout);
});
it(`should do the things`, async () => {
// Arrange
// Act
// Assert
});
})
FAQs
lets you know if a debugger is _actually_ attached
The npm package debugger-is-attached receives a total of 21 weekly downloads. As such, debugger-is-attached popularity was classified as not popular.
We found that debugger-is-attached demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.