PB Debugger conflicting with Antivirus

Windows specific forum
User avatar
76ea3a75
New User
New User
Posts: 5
Joined: Thu Nov 20, 2014 7:24 am

PB Debugger conflicting with Antivirus

Post by 76ea3a75 »

Hi @all

As a new PureBasic user, I'm starting right away with a (probably dumb) question.
When I am compiling & running a PB source code with "Debugger enabled" F-Prot complains about a virus and puts the temp file into quarantine:

Image

Any idea what I can do about this? Thanks!
Best regards,
Albert
User avatar
deeproot
Enthusiast
Enthusiast
Posts: 285
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: PB Debugger conflicting with Antivirus

Post by deeproot »

Welcome to PureBasic!

Not dumb, but a common issue. Search around the forum and you will find this has come up many times before.

Various anti-virus products often raise false-positives when looking at PureBasic components. The problem is with the anti-virus and not PureBasic. You will probably need to configure exclusions - haven't used F-Prot for many years so can't help with details but most can be 'tweaked' to ignore PureBasic and/or temporary compiled files.

Also maybe worth reporting the false-positive to the anti-virus manufacturer.
User avatar
76ea3a75
New User
New User
Posts: 5
Joined: Thu Nov 20, 2014 7:24 am

Re: PB Debugger conflicting with Antivirus

Post by 76ea3a75 »

Thanks for your reply!

Just had a look at the F-Prot settings. The following exceptions are allowed:
  • Folder - for me a no-go because the Temp folder may be used by any process, and I don't want to waive the protection for this
  • File - for this I don't know the file name in advance
  • Extension - same as above, too risky to exempt from security
So I need to switch off the Debugger feature.
Best regards,
Albert
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: PB Debugger conflicting with Antivirus

Post by PB »

> So I need to switch off the Debugger feature

Or get a better anti-virus. I use Avast, and if a false positive warning
pops up, it's just one click on that pop-up to whitelist the mistake so
that it never happens again.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: PB Debugger conflicting with Antivirus

Post by ts-soft »

Set the default-compilation to source-dir:
Image
and then set it to exception.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
76ea3a75
New User
New User
Posts: 5
Joined: Thu Nov 20, 2014 7:24 am

Re: PB Debugger conflicting with Antivirus

Post by 76ea3a75 »

PB wrote:Or get a better anti-virus. I use Avast, and if a false positive warning
pops up, it's just one click on that pop-up to whitelist the mistake so
that it never happens again.
Changing AV software is no option. F-Prot is part of our inhouse IT security.

After all, PowerBasic manages to have a debugger without triggering an alarm.
Best regards,
Albert
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: PB Debugger conflicting with Antivirus

Post by PB »

> PowerBasic manages to have a debugger without triggering an alarm

Oh, here we go.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Fred
Administrator
Administrator
Posts: 18361
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB Debugger conflicting with Antivirus

Post by Fred »

Obviously it's a F-Prot issue, so you should submit the purebasic executable so they adjust the heuristic algo. No problem here with AVG.
User avatar
Teddy Rogers
User
User
Posts: 98
Joined: Sun Feb 23, 2014 2:05 am
Location: Australia
Contact:

Re: PB Debugger conflicting with Antivirus

Post by Teddy Rogers »

Our lives should not revolve around heuristics, heuristics should revolve around our lives. Good AV should have good heuristics...

Ted.
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: PB Debugger conflicting with Antivirus

Post by Thade »

[Edited]
Last edited by Thade on Sun Nov 23, 2014 10:13 pm, edited 1 time in total.
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PB Debugger conflicting with Antivirus

Post by IdeasVacuum »

File - for this I don't know the file name in advance
It will normally be PureBasic_Compilation0.exe

When developing your app, keep your source code, supporting files and the temporary exe that PB makes for debug in a folder you have created specifically for your project. Add that folder to the F-Prot 'White List' or 'Ignore List'. Likewise, add the PB Installation folder (Program Files) to the F-Prot 'White List'.

That's all there is to it, F-Prot will be happy.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: PB Debugger conflicting with Antivirus

Post by heartbone »

76ea3a75 wrote:Thanks for your reply!

Just had a look at the F-Prot settings. The following exceptions are allowed:
  • Folder - for me a no-go because the Temp folder may be used by any process, and I don't want to waive the protection for this
  • File - for this I don't know the file name in advance
  • Extension - same as above, too risky to exempt from security
So I need to switch off the Debugger feature.
No you don't.

If you can't get a more user-friendly AV program, then you just need to switch off the AV when coding/compiling.
What makes you think that you need the anti-virus 'protection' while programming?
The truth is that you really do not, and you'll find the debugger to be far more useful than the AV.
As long as you are not running unknown programs or web surfing, and have a working firewall, then your computer will survive without harm without the AV running for as long as you want to create and debug programs.
Just don't forget to turn the service back on before using the browser to surf the net or before running dubious downloads.

Don't worry, be happy.
76ea3a75 wrote:Changing AV software is no option. F-Prot is part of our inhouse IT security.
After all, PowerBasic manages to have a debugger without triggering an alarm.
Did you really have to go there?
Really?
Keep it BASIC.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: PB Debugger conflicting with Antivirus

Post by PB »

> Our lives should not revolve around heuristics, heuristics should revolve around our lives

Heuristics should not exist. They're a stupid "technology", as shown.
Always false positives. An AV should only report a true known virus.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: PB Debugger conflicting with Antivirus

Post by electrochrisso »

It might help more if the final exe has its Version Information fields all filled out in the compiler options, I noticed this on a friends computer when I was showing him 2 programs I had written in PB and his anti-virus removed one of them, and the one that was removed did not have these fields filled out as it was not yet finished. He has also been using another one of my PB programs for a couple of years now, also with the version info filled, and it has never been removed and is also set to run on windows start up.
PureBasic! Purely the best 8)
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PB Debugger conflicting with Antivirus

Post by IdeasVacuum »

It might help more if the final exe has its Version Information fields all filled out in the compiler options
That does indeed make a difference with some AV, as does applying a digital signature.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply