Skip to content

Commit b596de6

Browse files
mcpolo99RandomCrocodile
andauthored
fix(core): don't create PDB files when debug=false (upstream mkaring#532) (#32)
Co-authored-by: RandomCrocodile <mawi@polosab.com>
1 parent 3ad3663 commit b596de6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Confuser.Core/ConfuserEngine.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ static void WriteModule(ConfuserContext context) {
421421

422422
static void Debug(ConfuserContext context) {
423423
context.Logger.Info("Finalizing...");
424+
if (!context.Project.Debug)
425+
return;
424426
for (int i = 0; i < context.OutputModules.Count; i++) {
425427
if (context.OutputSymbols[i] == null)
426428
continue;

0 commit comments

Comments
 (0)