Delve: Extremely slow startup of debug for specific project

Created on 22 Sep 2017  路  4Comments  路  Source: go-delve/delve

  1. What version of Delve are you using (dlv version)?
    Version 1.0.0-rc1
    Build: b6077a6

  2. What version of Go are you using? (go version)?
    1.9 windows/amd64

  3. What operating system and processor architecture are you using?
    Windows10 Pro 64bit

  4. What did you do?

go get -u github.com/goxjs/example/tree/master/triangle
cd $GOPATH/github.com/goxjs/example/tree/master/triangle
go run main.go #Less than 2 seconds 
dlv debug main.go #Between 60-90s
  1. What did you expect to see?
    Generally similar startup times, or some details of what could be causing the slow down.

  2. What did you see instead?
    30-40x slow down in startup.

Most helpful comment

This issue is currently an extreme pain.

All 4 comments

It's recompiling all dependencies with optimizations disabled which unfortunately can not be cached: https://github.com/golang/go/issues/19340

This issue is currently an extreme pain.

Any update?

I would try gdb to replace delve by using go install -v <package> to compile with cached.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goen picture goen  路  5Comments

luminacious picture luminacious  路  5Comments

NanXiao picture NanXiao  路  3Comments

devtoro picture devtoro  路  6Comments

derekparker picture derekparker  路  6Comments