Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugger start from wrong line. #12627

Open
zw963 opened this issue Oct 19, 2022 · 0 comments
Open

debugger start from wrong line. #12627

zw963 opened this issue Oct 19, 2022 · 0 comments

Comments

@zw963
Copy link
Contributor

zw963 commented Oct 19, 2022

Example:

# foo.cr

require "yaml"

module Procodile
  struct GlobalOption
    include YAML::Serializable

    @env : Hash(String, String)
    @app_name : String

    def initialize(@env, @app_name, @processes)
    end
  end

  debugger
end

when run debugger like this:

$: crystal i foo.cr

get following output:

    1: require "yaml"
    2: 
 => 3: module Procodile
    4:   struct GlobalOption
    5:     include YAML::Serializable
    6: 
    7:     @env : Hash(String, String)
    8:     @app_name : String

Not sure if this issue related to #12515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants