Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

fix: attach to v8 debugger session only when having active breakpoints #975

Merged
merged 4 commits into from
Jun 17, 2021

Conversation

Louis-Ye
Copy link
Contributor

  • This PR also refactos the inspector-debugapi class so that the V8
    related code is moved to v8inspector class.

Fixes #811

* This PR also refactos the inspector-debugapi class so that the V8
related code is moved to v8inspector class.
@Louis-Ye Louis-Ye requested review from a team as code owners June 14, 2021 14:54
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 14, 2021
@product-auto-label product-auto-label bot added the api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. label Jun 14, 2021
@codecov
Copy link

codecov bot commented Jun 14, 2021

Codecov Report

Merging #975 (043474d) into master (abf4b70) will increase coverage by 0.29%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #975      +/-   ##
==========================================
+ Coverage   66.54%   66.84%   +0.29%     
==========================================
  Files          20       20              
  Lines        1656     1677      +21     
  Branches      340      343       +3     
==========================================
+ Hits         1102     1121      +19     
- Misses        475      477       +2     
  Partials       79       79              
Impacted Files Coverage Δ
src/agent/config.ts 100.00% <ø> (ø)
src/agent/v8/inspector-debugapi.ts 83.91% <80.00%> (-1.04%) ⬇️
src/agent/v8/v8inspector.ts 88.40% <88.88%> (+7.45%) ⬆️

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 abf4b70...043474d. Read the comment docs.

Copy link
Contributor

@mctavish mctavish left a comment

Choose a reason for hiding this comment

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

A few nits; otherwise looks good.

src/agent/v8/inspector-debugapi.ts Show resolved Hide resolved
src/agent/config.ts Outdated Show resolved Hide resolved
src/agent/v8/v8inspector.ts Outdated Show resolved Hide resolved
src/agent/v8/v8inspector.ts Outdated Show resolved Hide resolved
@mctavish mctavish merged commit 031a7ad into googleapis:master Jun 17, 2021
gcf-merge-on-green bot pushed a commit that referenced this pull request Jun 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential Memory Leak
3 participants