Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Call Stack limitied to 20 #946

Closed
Closed

Description

If you run this code

package main

func main() {
	d := 30
	recursiveCall(d)
}

func recursiveCall(depth int) {
	if depth <= 0 {
		return
	}
	recursiveCall(depth - 1)
}

with a breakpoint on line 10, you can't access the value of d in the main function because it's too far down the stack. How can this be extended?

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions