halfrost / LeetCode-Go

✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解

Home Page:https://books.halfrost.com/leetcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

怎么在本地debug?

gh0sthx opened this issue · comments

怎么在本地debug?

你想调试每道题的解法还是测试代码?你可以先把断点打在每题的函数里,然后 go test 运行测试文件,测试文件会调用每道题的函数,你就可以调试了。你也可以自己写 main 函数,传入参调用函数。