CURL.CloseDebugFile
-------------------

Closes the debug output file.

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

MBS( "CURL.CloseDebugFile"; curl ) 

**MBS**( **"CURL.CloseDebugFile";** /\* Closes the debug output file. \*/  
**$curl**) /\* The CURL session handle. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |

### Result

Returns "OK" on success or error message.

### Description

Closes the debug output file.  
To create file for debug messages use [CURL.CreateDebugOutputFile](CURLCreateDebugOutputFile.md) function.  
The plugin closes files automatically when you call [CURL.Release](CURLRelease.md).  
Do not call this method while a transfer is running.  
In case close operation itself fails, the result is a number with the native file system error code.  
### Examples

Close debug log file:

 MBS ("CURL.CloseDebugFile"; $curl )  
### See also

- [CURL.CloseHeaderFile](CURLCloseHeaderFile.md)
- [CURL.CloseInputFile](CURLCloseInputFile.md)
- [CURL.CloseOutputFile](CURLCloseOutputFile.md)
- [CURL.CreateDebugOutputFile](CURLCreateDebugOutputFile.md)
- [CURL.Release](CURLRelease.md)

### Release notes

- **Version 9.4**
    - Fixed a bug in [CURL.CloseDebugFile](http://www.mbsplugins.eu/CURLCloseDebugFile.shtml), [CURL.CloseHeaderFile](http://www.mbsplugins.eu/CURLCloseHeaderFile.shtml), [CURL.CloseInputFile](http://www.mbsplugins.eu/CURLCloseInputFile.shtml) and [CURL.CloseOutputFile](http://www.mbsplugins.eu/CURLCloseOutputFile.shtml) to avoid.

### Blog Entries

- [MBS FileMaker Plugin, version 9.4pr1](https://www.mbsplugins.de/archive/2019-08-08/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.6pr4](https://www.mbsplugins.de/archive/2012-02-17/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 19th April 2020

  
[CURL.Check](CURLCheck.md) - [CURL.CloseHeaderFile](CURLCloseHeaderFile.md)

[HTML Version](CURLCloseDebugFile.shtml)