mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.html: use -d debug_html
instead of -g
, prevent undesired output, while debugging user programs (#14521)
This commit is contained in:
@ -21,12 +21,10 @@ mut:
|
||||
debug_file os.File
|
||||
}
|
||||
|
||||
[if debug]
|
||||
[if debug_html ?]
|
||||
fn (mut dom DocumentObjectModel) print_debug(data string) {
|
||||
$if debug {
|
||||
if data.len > 0 {
|
||||
dom.debug_file.writeln(data) or { eprintln(err) }
|
||||
}
|
||||
if data.len > 0 {
|
||||
dom.debug_file.writeln(data) or { eprintln(err) }
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user