CURL.SetDebugWithProgress
-------------------------

Sets whether to include progress in debug messages.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [6.3](newinversion63.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetDebugWithProgress"; curl; Value ) 

**MBS**( **"CURL.SetDebugWithProgress";** /\* Sets whether to include progress in debug messages. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The new setting.  
Pass 1 to enable or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | The new setting.   Pass 1 to enable or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Sets whether to include progress in debug messages.  
By default we don't include progress messages in log.  
  
This must be set before you call [CURL.Perform](CURLPerform.md) function, so [CURL.GetDebugMessages](CURLGetDebugMessages.md) will include progress entries in the log.  
### Examples

Download with debug log with full details:

 Set Variable \[$curl ; Value:MBS ("[CURL.New](CURLNew.md)")\]  
Set Variable \[$result ; Value:MBS ("[CURL.CreateDebugOutputFile](CURLCreateDebugOutputFile.md)"; $curl ; "/tmp/curl.log")\]  
Set Variable \[$result ; Value:MBS ("[CURL.SetOptionURL](CURLSetOptionURL.md)"; $curl ; "http://www.monkeybreadsoftware.com/images/mbs .jpg")\]  
Set Variable \[$result ; Value:MBS ("[CURL.SetDebugWithTime](CURLSetDebugWithTime.md)"; $curl ; 1)\]  
Set Variable \[$result ; Value:MBS ("CURL.SetDebugWithProgress"; $curl ; 1)\]  
Set Field \[CURL Test::Result ; MBS ("[CURL.Perform](CURLPerform.md)"; $curl )\]  
Set Field \[CURL Test::Image ; MBS ("[CURL.GetResultAsJPEG](CURLGetResultAsJPEG.md)"; $curl )\]  
Set Field \[CURL Test::debug ; MBS ("[CURL.GetDebugMessages](CURLGetDebugMessages.md)"; $curl )\]  
Set Variable \[$result ; Value:MBS ("[CURL.Release](CURLRelease.md)"; $curl )\]  
Enable advanced logging to debug a problem:

 # Trace to file with times   
Set Variable \[ $r ; Value: MBS ( "Trace"; "/tmp/mbs .log" ) \]  
Set Variable \[ $r ; Value: MBS ( "[Trace.SetWithTimes](TraceSetWithTimes.md)"; 1 ) \]  
\#   
\# Debug log for CURL with additional data:   
Set Variable \[ $r ; Value: MBS ( "[CURL.SetDebugWithTime](CURLSetDebugWithTime.md)"; $curl ; 1 ) \]  
Set Variable \[ $r ; Value: MBS ( "CURL.SetDebugWithProgress"; $curl ; 1 ) \]  
\#   
\# and define some timeouts   
Set Variable \[ $r ; Value: MBS ( "[CURL.SetOptionConnectTimeoutMS](CURLSetOptionConnectTimeoutMS.md)"; $curl ; 10000 ) \]  
### See also

- [CURL.CreateDebugOutputFile](CURLCreateDebugOutputFile.md)
- [CURL.GetDebugWithProgress](CURLGetDebugWithProgress.md)
- [CURL.GetResultAsJPEG](CURLGetResultAsJPEG.md)
- [CURL.New](CURLNew.md)
- [CURL.SetDebugWithTime](CURLSetDebugWithTime.md)
- [CURL.SetOptionConnectTimeoutMS](CURLSetOptionConnectTimeoutMS.md)
- [CURL.SetOptionQuote](CURLSetOptionQuote.md)
- [CURL.SetOptionURL](CURLSetOptionURL.md)
- [Trace](Trace.md)
- [Trace.SetWithTimes](TraceSetWithTimes.md)

### Release notes

- **Version 10.3**
    - Changed CURL debug output with progress using [CURL.SetDebugWithProgress](https://www.mbsplugins.eu/CURLSetDebugWithProgress.shtml) to not show upload and download progress if you are only downloading or uploading.
- **Version 8.3**
    - Fixed crash with [CURL.SetDebugWithProgress](http://www.mbsplugins.eu/CURLSetDebugWithProgress.shtml) if not logging to file.

### Example Databases

- [CURL/SFTP/CURL sFTP Upload File](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/SFTP/CURL%20sFTP%20Upload%20File.shtml#7ScriptAnchor_)

### Blog Entries

- [SFTP Upload with temporary file](https://www.mbsplugins.de/archive/2023-03-06/SFTP_Upload_with_temporary_fil/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.3pr8](https://www.mbsplugins.de/archive/2020-07-03/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Debugging problems on FileMaker Cloud for AWS](https://www.mbsplugins.de/archive/2019-06-30/Debugging_problems_on_FileMake/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 8.3pr6](https://www.mbsplugins.de/archive/2018-07-13/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.3pr3](https://www.mbsplugins.de/archive/2016-06-19/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 15th June 2016 , last changed 5th September 2025

  
[CURL.SetDebugWithData](CURLSetDebugWithData.md) - [CURL.SetDebugWithTime](CURLSetDebugWithTime.md)

[HTML Version](CURLSetDebugWithProgress.shtml)