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

问个关于调试的问题 #62

Closed
guanqun opened this issue Jun 24, 2013 · 3 comments
Closed

问个关于调试的问题 #62

guanqun opened this issue Jun 24, 2013 · 3 comments

Comments

@guanqun
Copy link
Contributor

guanqun commented Jun 24, 2013

你好,

这算不得是issue,就是我有这样的场景,我产生了一个binary之后,需要调试运行,这个binary的运行需要一个放在当前目录下的.ini文件,像这种情况,我想知道best practices是怎么样的呢?

我现在是手动拷贝一个.ini文件到debug目录下,然后运行该程序。但总感觉不是很方便,因为一来默认的.ini文件是属于代码仓库的一部分,而我需要每次修改之后复制到debug目录下。

@guanqun
Copy link
Contributor Author

guanqun commented Jun 24, 2013

哦 貌似我可以再弄个gen_rule来自动化复制这个操作。

@chen3feng
Copy link
Owner

cc_test(
...
testdata = 'test.ini'
)

@guanqun
Copy link
Contributor Author

guanqun commented Jul 1, 2013

恩 非常感谢。

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

No branches or pull requests

2 participants