1
0
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:
kahsa
2022-05-25 17:23:56 +09:00
committed by GitHub
parent 31c234485a
commit dd8c96f6bc
2 changed files with 8 additions and 11 deletions

View File

@ -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) }
}
}