Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !2588

Increase debugger poll timeout

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/idanakav/debugger-polling into master Feb 19, 2021
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: idanakav

This is a workaround for an issue we recently observed where IntelliJ is failing to attach debugger in some tests.

There is a possible ongoing race condition when running tests with the --debug flag where BUCK will try to attach the debugger too early and in some cases, mainly larger targets, it will fail.

IntelliJ implementation has polling mechanism where it will retry the creation and attaching the debugger, increasing the pooling time to 30s is giving us enough time for BUCK to execute.

Once the polling timeout is reached to 0 and the debugger was not successfully attached the UX is bad since there is no feedback to the end user and the IJ/CLI are stuck in Debugging. Suspending JVM. Connect a JDWP debugger to port 5005 to proceed.

This should not have a negative impact on smaller targets where the debugger is attached almost instantly.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/idanakav/debugger-polling